﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<div class="sidebox-categories-wrappern" style="width: 184px;">
    <h3 class="sidebox-titlen">
        <span>Hàng bán chạy</span></h3>
    <div class="sidebox-bodyn" style="border: 1px solid #CCCCCC;">
        <div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <div>
                            <ul class="tab-partner">
                                <% List<GetHotPartnerResult> listHotPartner = (List<GetHotPartnerResult>)ViewData["HotPartner"];
                                   foreach (GetHotPartnerResult item in listHotPartner)
                                   {
                                                
                                %>
                                <li class="p-item"><a href="<%=FRouter._("sanpham",item.ID.ToString(),item.PartnerName) %>">
                                <div class="pnname">
                                        <%=HttpUtility.HtmlEncode(item.PartnerName) %></div>
                                    <img class="imag" src="<%=Constants.UPLOAD_VITUAL_IMAGE_PATH + item.Logo%>" width="132"
                                        height="120" />
                                    
                                </a>
                                    <div class="cprice">
                                        <%=(item.CurrentPrice.HasValue ? String.Format("{0:0,0} đ", item.CurrentPrice) : "Liên hệ")%>
                                    </div>
                                </li>
                                <%} %>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
    </div>
</div>
